package total;

import java.util.Scanner;

public class Ques1838 {
	
	public void go(){
		Scanner scan = new Scanner(System.in);
		int n,m,index;
		while(scan.hasNext()){
			n = scan.nextInt();
			m = scan.nextInt();
			for(int i = 0;i < n;i ++){
				index = i; 
				for(int j = i;j < m;j ++){
					while(index > 0){
						System.out.print((char)(65+index)+"");
						index --;
					}
					System.out.print((char)(65+j-i)+"");						
				}
				System.out.println();
			}
		}
	}
	
	public static void main(String[] args) {
		new Ques1838().go();
	}
}
